﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class JavaScript_Demo_BaiTapThucHanh : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.loadDatadrpsophong();
            this.loadDatadrpnguoilon();
        }
    }

    private void loadDatadrpsophong()
    {
        for (int i = 0 ; i <= 5; i++ )
        {
            ListItem list = new ListItem();
            list.Text = Convert.ToString(i);
            drpsophong.Items.Add(list);
        }
    }

    private void loadDatadrpnguoilon()
    {
        for (int i = 0; i <= 10; i++)
        {
            ListItem list = new ListItem();
            list.Text = Convert.ToString(i);
            
            drpnguoilon.Items.Add(list);
            
        }
    }


    protected void drpsophong_SelectedIndexChanged(object sender, EventArgs e)
    {
       
       
    }
}